package com.shzu.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class CertificateToReplaseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CertificateToReplaseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andReplaceidIsNull() {
            addCriterion("replaceid is null");
            return (Criteria) this;
        }

        public Criteria andReplaceidIsNotNull() {
            addCriterion("replaceid is not null");
            return (Criteria) this;
        }

        public Criteria andReplaceidEqualTo(String value) {
            addCriterion("replaceid =", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidNotEqualTo(String value) {
            addCriterion("replaceid <>", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidGreaterThan(String value) {
            addCriterion("replaceid >", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidGreaterThanOrEqualTo(String value) {
            addCriterion("replaceid >=", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidLessThan(String value) {
            addCriterion("replaceid <", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidLessThanOrEqualTo(String value) {
            addCriterion("replaceid <=", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidLike(String value) {
            addCriterion("replaceid like", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidNotLike(String value) {
            addCriterion("replaceid not like", value, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidIn(List<String> values) {
            addCriterion("replaceid in", values, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidNotIn(List<String> values) {
            addCriterion("replaceid not in", values, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidBetween(String value1, String value2) {
            addCriterion("replaceid between", value1, value2, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplaceidNotBetween(String value1, String value2) {
            addCriterion("replaceid not between", value1, value2, "replaceid");
            return (Criteria) this;
        }

        public Criteria andReplacenameIsNull() {
            addCriterion("replacename is null");
            return (Criteria) this;
        }

        public Criteria andReplacenameIsNotNull() {
            addCriterion("replacename is not null");
            return (Criteria) this;
        }

        public Criteria andReplacenameEqualTo(String value) {
            addCriterion("replacename =", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameNotEqualTo(String value) {
            addCriterion("replacename <>", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameGreaterThan(String value) {
            addCriterion("replacename >", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameGreaterThanOrEqualTo(String value) {
            addCriterion("replacename >=", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameLessThan(String value) {
            addCriterion("replacename <", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameLessThanOrEqualTo(String value) {
            addCriterion("replacename <=", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameLike(String value) {
            addCriterion("replacename like", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameNotLike(String value) {
            addCriterion("replacename not like", value, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameIn(List<String> values) {
            addCriterion("replacename in", values, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameNotIn(List<String> values) {
            addCriterion("replacename not in", values, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameBetween(String value1, String value2) {
            addCriterion("replacename between", value1, value2, "replacename");
            return (Criteria) this;
        }

        public Criteria andReplacenameNotBetween(String value1, String value2) {
            addCriterion("replacename not between", value1, value2, "replacename");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeIsNull() {
            addCriterion("selfTestFree is null");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeIsNotNull() {
            addCriterion("selfTestFree is not null");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeEqualTo(String value) {
            addCriterion("selfTestFree =", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeNotEqualTo(String value) {
            addCriterion("selfTestFree <>", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeGreaterThan(String value) {
            addCriterion("selfTestFree >", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeGreaterThanOrEqualTo(String value) {
            addCriterion("selfTestFree >=", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeLessThan(String value) {
            addCriterion("selfTestFree <", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeLessThanOrEqualTo(String value) {
            addCriterion("selfTestFree <=", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeLike(String value) {
            addCriterion("selfTestFree like", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeNotLike(String value) {
            addCriterion("selfTestFree not like", value, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeIn(List<String> values) {
            addCriterion("selfTestFree in", values, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeNotIn(List<String> values) {
            addCriterion("selfTestFree not in", values, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeBetween(String value1, String value2) {
            addCriterion("selfTestFree between", value1, value2, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andSelftestfreeNotBetween(String value1, String value2) {
            addCriterion("selfTestFree not between", value1, value2, "selftestfree");
            return (Criteria) this;
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(String value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(String value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(String value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(String value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(String value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(String value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLike(String value) {
            addCriterion("cid like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotLike(String value) {
            addCriterion("cid not like", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<String> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<String> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(String value1, String value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(String value1, String value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andChangescoreIsNull() {
            addCriterion("changeScore is null");
            return (Criteria) this;
        }

        public Criteria andChangescoreIsNotNull() {
            addCriterion("changeScore is not null");
            return (Criteria) this;
        }

        public Criteria andChangescoreEqualTo(Float value) {
            addCriterion("changeScore =", value, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreNotEqualTo(Float value) {
            addCriterion("changeScore <>", value, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreGreaterThan(Float value) {
            addCriterion("changeScore >", value, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreGreaterThanOrEqualTo(Float value) {
            addCriterion("changeScore >=", value, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreLessThan(Float value) {
            addCriterion("changeScore <", value, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreLessThanOrEqualTo(Float value) {
            addCriterion("changeScore <=", value, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreIn(List<Float> values) {
            addCriterion("changeScore in", values, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreNotIn(List<Float> values) {
            addCriterion("changeScore not in", values, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreBetween(Float value1, Float value2) {
            addCriterion("changeScore between", value1, value2, "changescore");
            return (Criteria) this;
        }

        public Criteria andChangescoreNotBetween(Float value1, Float value2) {
            addCriterion("changeScore not between", value1, value2, "changescore");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}